package com.dnjn.happiness.survey.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.common.core.constant.Constants;
import com.dnjn.happiness.survey.domain.CheckQuestion;
import com.dnjn.happiness.survey.mapper.CheckQuestionMapper;
import com.dnjn.happiness.survey.service.ICheckQuestionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 考核题目Service业务层处理
 *
 * @author happiness
 * @date 2024-04-02
 */
@Service
public class CheckQuestionServiceImpl extends ServiceImpl<CheckQuestionMapper, CheckQuestion> implements ICheckQuestionService {

    @Override
    public List<CheckQuestion> getQuestionList(Long checkId) {

        List<CheckQuestion> questions = lambdaQuery().eq(CheckQuestion::getDeleted, Constants.UNDELETED).eq(CheckQuestion::getCheckId, checkId).list();
        return questions;
    }
}
